namespace TuyaiotModel {
    export interface ITdevice {
        ID?: number;
        name?: string;
        deviceid?: string;
        school?: string;
        description?: string;
        createdAt?: Date;
        updatedAt?: Date;
        organizeid?: number
    }

    export interface ITorganizeSet {
        index: number,
        width?: number
        height?: number
        col?: number
        name: string
        show: boolean
        state?: string[]
        Container?: 'left' | 'right' | 'center' | 'bottom'
        conindex?: number
    }

    export interface ITorganize {
        ID?: number
        name?: string
        description?: string
        password?: string
        createdAt?: Date;
        updatedAt?: Date;
        device?: ITdevice[]
        organizeid?: string
        phone?: string
        home_id?: string[]
        v2set?: {
            video: ITorganizeSet[],
            table: ITorganizeSet,
            overview: ITorganizeSet,
            percentage: ITorganizeSet,
            log: ITorganizeSet,
            list: ITorganizeSet[]
            char: ITorganizeSet[]
            left?: number
            right?: number
            bottom?: number
            // 物联网监控配置logo、title
            title?: string
            logo?: string
        }
    }

}

export default TuyaiotModel

